import EmptyRouter from "@/components/common/EmptyRouter";

const openRouter = {
	path: "developer_serve",
	name: "developer_serve",
	redirect: "",
	// 这里必须添加一个空的路由组件或者首页布局组件，不然子路由不会渲染
	component: EmptyRouter,
	meta: {
		title: "开发者服务",
	},
	img: 3,
	children: [
		{
			path: "goods",
			component: () =>
				import(
					/* webpackChunkName: "access-vendor-management" */ "@/pages/developer_serve/goods/goods.vue"
				),
			name: "goods",
			__full_path__: "/developer_serve/goods",
			meta: {
				title: "商品审核",
			},
		},
		{
			path: "category",
			component: () =>
				import(
					/* webpackChunkName: "access-vendor-management" */ "@/pages/developer_serve/category/category.vue"
				),
			name: "category",
			__full_path__: "/developer_serve/category",
			meta: {
				title: "类别管理",
			},
		},
		{
			path: "user",
			component: () =>
				import(
					/* webpackChunkName: "access-vendor-management" */ "@/pages/developer_serve/user/user.vue"
				),
			name: "user",
			__full_path__: "/developer_serve/user",
			meta: {
				title: "用户管理",
			},
		},
	],
};

export default openRouter;
